package com.web.service;

import com.web.entity.NoteType;
import com.baomidou.mybatisplus.service.IService;
import com.web.util.LoginException;
import com.web.util.ServiceException;

import java.util.List;

/**
 * <p>
 * 笔记类型表 服务类
 * </p>
 *
 * @author hgjxyz
 * @since 2020-11-18
 */
public interface INoteTypeService extends IService<NoteType> {

    NoteType add(String name, String tokenStr)throws ServiceException, LoginException;
    void delete(String id, String tokenStr)throws ServiceException, LoginException;
    void update(String id, String name, String tokenStr)throws ServiceException, LoginException;
    List<NoteType> getList(String tokenStr)throws LoginException;
    NoteType get(String id);
}
